package com.emm.yixun.common.enums;

import java.io.Serializable;

import org.apache.commons.lang.StringUtils;

public enum ApplyMessageProcessKeyEnums  implements Serializable{
	PROCESS_KEY_1("mktPriceScheme","价格方案申请;NT18"),
	PROCESS_KEY_2("mktPriceSchemeInvalid","价格方案失效审批申请;NT18"),
	PROCESS_KEY_3("cusPayDeposit","认筹审批申请;NT07"),
	PROCESS_KEY_4("cusPayDepositRetreat","退筹审批申请;NT14"),
	PROCESS_KEY_5("cusSubscribe","认购审批申请;NT08"),
	PROCESS_KEY_6("cusCubscribeRetreat","退认购审批申请;NT13"),
	PROCESS_KEY_7("cusCubscribeChangeHouse","认购换房审批申请;NT11"),
	PROCESS_KEY_8("cusCubscribeAndSignedChangeName","更名审批申请;NT15"),
	PROCESS_KEY_9("cusCubscribeDelaySingedOne","延期签约审批(15天内)申请;NT16"),
	PROCESS_KEY_10("cusCubscribeDelaySingedTwo","延期签约审批(15到30天)申请;NT16"),
	PROCESS_KEY_11("cusCubscribeDelaySingedThree","延期签约审批(30天以上)申请;NT16"),
	/*PROCESS_KEY_9("cusCubscribeDelaySingedOne","延期签约审批(15天内)申请;NT161"),
	PROCESS_KEY_10("cusCubscribeDelaySingedTwo","延期签约审批(15到30天)申请;NT162"),
	PROCESS_KEY_11("cusCubscribeDelaySingedThree","延期签约审批(30天以上)申请;NT163"),*/
	PROCESS_KEY_12("cusSigned","签约审批申请;NT09"),
	PROCESS_KEY_13("cusSignedDiscount","签约折扣审批申请;NT101"),
	PROCESS_KEY_14("cusSignedChangeHouse","签约换房审批申请;NT111"),
	PROCESS_KEY_15("cusSignedCheckOut","签约退房审批申请;NT12"),
	PROCESS_KEY_16("dealReserveArea","面积补差审批申请;NT19"),
	PROCESS_KEY_17("cusSubscribeDiscount","认购折扣审批申请;NT10"),
	/*PROCESS_KEY_18("deferredPaymentOne","应收款延期(15天内);NT171"),
	PROCESS_KEY_19("deferredPaymentTwo","应收款延期(15到30天);NT172"),
	PROCESS_KEY_20("deferredPaymentThree","应收款延期(30天以上);NT173")*/
	PROCESS_KEY_18("deferredPaymentOne","应收款延期(15天内);NT17"),
	PROCESS_KEY_19("deferredPaymentTwo","应收款延期(15到30天);NT17"),
	PROCESS_KEY_20("deferredPaymentThree","应收款延期(30天以上);NT17");
	
	private final String no;
	private final String des;
	
	/**
	 * 私有构造函数
	 * @param code
	 * @param description
	 */
	ApplyMessageProcessKeyEnums(String no, String des) {
		this.no = no;
		this.des = des;
	}

	/**
	 * @return Returns the no.
	 */
	public String getNo() {
		return no;
	}

	/**
	 * @return Returns the des.
	 */
	public String getDes() {
		return des;
	}
	
	public static ApplyMessageProcessKeyEnums getByNo(String no) {
		if(StringUtils.isBlank(no)){
			return null;
		}
		for (ApplyMessageProcessKeyEnums menum : values()) {
			if (menum.getNo().equals(no)) {
				return menum;
			}
		}
		return null;
	}
}
